<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <h2 v-if="scorce>=90">优秀</h2>
  <h2 v-else-if="scorce>=80">良好</h2>
  <h2 v-else-if="scorce>=60">及格</h2>
  <h2 v-else>不及格</h2>

  <hr />

  <h2>{{result}}</h2>
</div>

<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      scorce: 99
    },
    computed: {
      result() {
        let level = '';
        if(this.scorce >= 90) {
          level = '优秀';
        }else if(this.scorce >= 80) {
          level = '良好';
        }else if(this.scorce >= 60) {
          level = '及格';
        }else {
          level = '不及格';
        }

        return level;
      }
    }
  });
</script>
</body>
</html>